<style>
.chosen-container {
	width: 100%;
}
</style>
<div class="modal-content">
	<div class="modal-header">
		<button ng-click="cancel()" type="button" class="close">
			<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
		</button>
		<h4 class="modal-title">存储信息</h4>
	</div>
	<div class="modal-body">
		<div class="wrapper wrapper-content animated fadeInRight">

			<form class="form-horizontal m-t-md " name="myForm" novalidate
				action="">
				<div class="form-group">
					<label class="col-sm-2 control-label">名称:</label>
					<div class="col-sm-10">
						<input type="text" ng-minlength="2" required ng-maxlength="30"
							class="form-control ng-pristine ng-untouched ng-valid ng-empty"
							placeholder="请输入内容" name="name" ng-model="item.name">
						<div class="text-danger"
							ng-if="myForm.name.$dirty && myForm.name.$invalid">
							<span ng-if="myForm.name.$error.required"> 输入不能为空 </span> <span
								ng-if="myForm.name.$error.minlength"> 请至少输入1个字符</span> <span
								ng-show="myForm.name.$error.maxlength">不能超过30个字符 </span>
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 control-label">是否使用:</label>
					<div class="col-sm-10">
						<select width=100 chosen disable-search="true"
							class="chosen-select" no-results-text="'没有找到相应条目'"
							ng-model="usedSel" data-placeholder-text-single="'请选择...'"
							ng-options="v.name for v in usedOpt">
							<option value=""></option>
						</select>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 control-label">访问控制:</label>
					<div class="col-sm-10">
						<select width=100 chosen disable-search="true"
							class="chosen-select" no-results-text="'没有找到相应条目'"
							ng-model="aclSel" data-placeholder-text-single="'请选择...'"
							ng-options="item.name for item in aclOpt">
							<option value=""></option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">返回类型:</label>
					<div class="col-sm-10">
						<select width=100 chosen disable-search="true"
							class="chosen-select" no-results-text="'没有找到相应条目'"
							ng-model="returnSel" data-placeholder-text-single="'请选择...'"
							ng-options="item.name for item in returnOpt">
							<option value=""></option>
						</select>
					</div>
				</div>



				<div class="form-group">
					<label class="col-sm-2 control-label">备注:</label>
					<div class="col-sm-10">
						<input type="text" ng-maxlength="200"
							class="form-control ng-pristine ng-untouched ng-valid ng-empty"
							placeholder="请输入内容" name="mark" ng-model="item.mark">
						<div class="text-danger"
							ng-show="myForm.mark.$dirty && myForm.mark.$invalid">
							<span ng-show="myForm.mark.$error.maxlength">不能超过200个字符 </span>
						</div>
					</div>
				</div>


				<div class="form-group">
					<label class="col-sm-2 control-label">Sql文本:</label>
					<div class="col-sm-10">
						<textarea type="text" ng-maxlength="4000" style="height: 120px"
							class="form-control ng-pristine ng-untouched ng-valid ng-empty"
							placeholder="请输入内容" name="sql" ng-model="item.sqltext"></textarea>
						<div class="text-danger"
							ng-show="myForm.sql.$dirty && myForm.sql.$invalid">
							<span ng-show="myForm.sql.$error.maxlength">不能超过4000个字符 </span>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="modal-footer" style="text-align: center">
		<button ng-click="cancel()" class="btn btn-warning">取消</button>
		<button ng-disabled="myForm.$invalid" ng-click="sure()"
			class="btn btn-primary">确认</button>
	</div>
</div>